function changeMode(actionEvent) {
    actionEvent.cancel();
    var eventSource = actionEvent.getSource();
    var springPanel = eventSource.findComponent("ps1");
    var mode=springPanel.getProperty(AdfRichPanelSpringboard.DISPLAY_MODE);
    //alert(mode);
    springPanel.setProperty(AdfRichPanelSpringboard.DISPLAY_MODE, mode=="grid" ? "strip" : "grid", true);
}